.navbar {
  background-color: #f6f5f6;
  display: flex;
  height: 45px;
  align-items: center;

  .icon_left {
    padding: 0 10px;
  }
  .search {
    position: static;
    flex: 1;
    :global {
      i.icon-map {
        color: var(--mainColor);
      }
    }
  }
}
// 2. 筛选过滤分区
.filter {
  position: relative;
  z-index: 101;
  height: 40px;
  overflow: visible; // 默认就是超出可见的
  // 2.1 筛选过滤分区标题
  .filter_content_buttons {
    height: 50px;
    border-top: 1px solid #ddd;
    font-size: 18px;
    display: flex;
    span {
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .btn_cancel {
      flex: 1;
      color: var(--mainColor);
      background-color: #fff;
    }

    .btn_confirm {
      flex: 2;
      color: #fff;
      background-color: var(--mainColor);
    }
  }
  .filter_tabs {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    .filter_tabs_item {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      :global {
        .iconfont {
          font-size: 12px;
          color: #bbbbbb;
        }
      }
      &.active {
        color: var(--mainColor);
        :global {
          .iconfont {
            color: var(--mainColor);
          }
        }
      }
    }
  }
  .filter_content {
    background-color: #fff;
    .filter_content_main {
      height: 240px;
    }
  }
  .filter_more {
    background-color: #fff;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 20%;
    .filter_more_content {
      height: 100vh;
      padding-bottom: 50px;
      overflow-y: auto;
    }
    .filter_content_buttons {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
    }
    .filter_more_title {
      font-weight: normal;
      padding: 15px 20px;
    }
    .filter_more_list {
      margin: 0 20px;
      display: flex;
      flex-wrap: wrap;
      // justify-content: space-between;
      border-bottom: 1px solid #ddd;
      &:last-child {
        border-bottom: none;
      }
      span {
        width: 70px;
        height: 30px;
        font-size: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 1px solid #ccc;
        color: #666;
        border-radius: 3px;
        margin-bottom: 20px;
        margin-right: 20px;
        &.active {
          border-color: var(--mainColor);
          color: var(--mainColor);
          background-color: #defaef;
        }
        &:nth-child(3n) {
          margin-right: 0;
        }
      }
    }
  }
}

// 黑科技 - 把父级高度写死，不要被内容撑开高度，避免出现不必要的滚动条
.houses {
  // 不需要被撑开
  height: 0;
  // 超出可见
  overflow: visible;
}
.mask_bg {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  z-index: -1;
  transition: all 0.4s;
  &.mask_show {
    z-index: 100;
    opacity: 1;
  }
}
